package cn.lhz.dto;


import cn.lhz.util.annotation.FieldAnnotation;
import cn.lhz.util.annotation.RowKeyAnnotation;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author 年阔正
 * @version 1.0.0
 */
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class IndiaCity extends Model<IndiaCity> {
  @TableId(type = IdType.NONE)
  @RowKeyAnnotation
  @FieldAnnotation(alias = "城市")
  private String city;

  @FieldAnnotation(alias = "PM2.5浓度")
  private double pm2;

  @FieldAnnotation(alias = "PM10浓度")
  private double pm10;

  @FieldAnnotation(alias = "一氧化氮(NO)浓度")
  private double no;

  @FieldAnnotation(alias = "二氧化氮(NO2)浓度")
  private double no2;

  @FieldAnnotation(alias = "氮氧化物(NOX)浓度")
  private double nox;

  @FieldAnnotation(alias = "氨气(NH3)浓度")
  private double nh3;

  @FieldAnnotation(alias = "一氧化碳(CO)浓度")
  private double co;

  @FieldAnnotation(alias = "二氧化硫(SO2)浓度")
  private double so2;

  @FieldAnnotation(alias = "臭氧(O3)浓度")
  private double o3;

  @FieldAnnotation(alias = "苯(Benzene)浓度")
  private double benzene;

  @FieldAnnotation(alias = "甲苯(Toluene)浓度")
  private double toluene;


  @Override
  public String toString() {
    return this.city + "\t" +
            this.pm2 + "\t" +
            this.pm10 + "\t" +
            this.no + "\t" +
            this.no2 + "\t" +
            this.nox + "\t" +
            this.nh3 + "\t" +
            this.co + "\t" +
            this.so2 + "\t" +
            this.o3 + "\t" +
            this.benzene + "\t" +
            this.toluene;
  }
}
